<template>
	<view>
		<view @click="bindPhone()">绑定手机号</view>
    {{ currentPage }}{{targetPageUrl}}
		<view>绑定完成后返回</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
        currentPage: '',
        targetPageUrl: '',
			}
		},
		methods: {
			bindPhone() {
				// return
				let pages = getCurrentPages();
				let currentPage = pages[pages.length - 2];
				let targetPageUrl = currentPage.options.page;
        this.currentPage = currentPage
        this.targetPageUrl = targetPageUrl
				uni.reLaunch({
					url: targetPageUrl
				});
			}
		}
	}
</script>

<style>
</style>